Repository navigation
Conversation
…nsion to be built, wherever it's offered - A collection version is released only once its default expansion is built, as the API now requires. While that expansion is processing, or while a version that expands itself is still processing with no default yet (its seed makes the expansion), Release is disabled with "Available once this version's expansion is built" on hover. - Where: the version page's Actions menu, a Versions row's menu (which already waited while the version processed, and now also waits for a rebuild of its default expansion), and the Released box of the version edit form. Un-Release, and a repository notice's lock, are as before. - The version page reads its default expansion's processing state when the version names one and when the Actions menu opens, then again on the processing poll's interval while it's being built, so Release turns on once it's built, without a reload (useDefaultExpansionProcessing). The Versions tab uses its own expansion polling. - The rule is getReleaseWait in defaultExpansion.js; parseProcessingValue moves to processingStages.js to be shared. Tests for the rule and for the version page's Release item. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qVTGMWCzGXDUyX7mLb
…where, an open row menu follows its version, and a refusal says why Codex review pass 1: - F1.1: an edit sends the default expansion only when it's changed in the form, so saving a form opened while the version was seeding no longer clears the default its seed made since (getExpansionURLPayload). - F1.2: a Versions row menu asks again whether its default expansion is being built when it opens, as the version page's menu does; when it is, the version's expansions are read again and polled from there. - F1.3: an open Versions row menu is built from the version as it is now, so Release turns on when its seed ends. - F1.4: on the version page, the default expansion counts as being built until its first read answers; a read that fails counts as built. - F1.5: a refused release shows the API's reason, which this client hands back as the response itself. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qVTGMWCzGXDUyX7mLb
Codex review, pass 1 (codex-cli 0.169.0, commit 4d025b1)Verdict: findings (5 findings)
Response
findings.json{
"reviewer": "codex-cli 0.169.0",
"perspective": "defects",
"mode": "full",
"commit": "4d025b1dff8045e112d8aa139a7dcbe56a998b1d",
"verdict": "findings",
"prior": [],
"findings": [
{
"id": "F1.1",
"severity": "P1",
"tag": null,
"file": "src/components/repos/RepoHome.jsx",
"line": 608,
"claim": "Releasing from an open edit form can clear the default expansion that just finished building.",
"scenario": "Open Edit Version from the header while a new auto-expanding version is seeding and has no expansion URL. When polling sees the completed build, the checkbox enables, but the form still holds the original empty expansion field. Checking Release and saving sends `released: true` and `expansion_url: null`. The API accepts the update and clears the newly built default.",
"action": "Omit `expansion_url` from edit requests unless the user changed it. Add a regression test that opens the form during seeding and verifies that releasing after the build preserves the default.",
"lines_delta": null,
"confidence": "high"
},
{
"id": "F1.2",
"severity": "P1",
"tag": null,
"file": "src/components/repos/CollectionVersionsTab.jsx",
"line": 689,
"claim": "The Versions row menu can keep offering Release throughout a default expansion rebuild.",
"scenario": "Load the Versions tab while the default expansion is idle, then start its rebuild from another tab. Opening the row menu still reads the cached idle expansion. Opening the menu triggers no status request, and the poll only starts for expansions already known to be processing. Release stays enabled and the API rejects the attempt.",
"action": "Check the named default expansion when the row menu opens and keep its release state current while the menu is open. Cover a rebuild started after the Versions tab loaded.",
"lines_delta": null,
"confidence": "high"
},
{
"id": "F1.3",
"severity": "P1",
"tag": null,
"file": "src/components/repos/CollectionVersionsTab.jsx",
"line": 1040,
"claim": "An open Versions row menu keeps Release disabled after an automatic build finishes.",
"scenario": "Open the row menu for a new auto-expanding version while its seed is running. Polling updates the row with the completed version, but the menu keeps the object captured on open, with `is_processing: true` and no expansion URL. The user has to close and reopen the menu before Release enables.",
"action": "Store the row's version key and build the open menu from the latest version in `displayVersions`. Test the transition with the menu left open.",
"lines_delta": null,
"confidence": "high"
},
{
"id": "F1.4",
"severity": "P1",
"tag": null,
"file": "src/hooks/useDefaultExpansionProcessing.js",
"line": 32,
"claim": "The version page treats an unknown build status as ready and lets the confirmation stay actionable after polling detects a rebuild.",
"scenario": "Start a rebuild and open the version page's Actions menu while the status request is pending. Release is enabled until the response arrives, so an editor can open the confirmation. When the GET returns `true`, the confirmation's Submit button still accepts a click and sends a release request that the API refuses.",
"action": "Distinguish a pending status check from a completed build. Apply the live release restriction to the confirmation as well as the menu and edit checkbox.",
"lines_delta": null,
"confidence": "high"
},
{
"id": "F1.5",
"severity": "P1",
"tag": null,
"file": "src/components/repos/RepoHome.jsx",
"line": 577,
"claim": "The release confirmation drops the API's reason for refusing a release.",
"scenario": "A rebuild starts between the editor opening the release confirmation and clicking Submit. The API returns a 409 with a `detail` telling the editor to wait for the build. The non-raw API client returns that body directly, but the confirmation handler reads `response.data.detail` and shows a generic error.",
"action": "Read the top-level `response.detail` returned by the non-raw PUT and test that the alert shows the 409 message.",
"lines_delta": null,
"confidence": "high"
}
]
} |
…failed read keeps the last answer, and a row menu reads its default by URL Codex review pass 2: - F2.1: a Versions row menu asks about the default expansion its version names, whether or not its expansions are in yet, and a positive answer holds Release at once. - F2.2: a failed processing/ read keeps the last answer and the polling; with no answer yet, it counts as built. - F2.3, F2.4: the release confirmation and the edit form read whether the version they act on is having its default expansion built when they open; the confirmation's Submit waits, saying why, as the form's Released box does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qVTGMWCzGXDUyX7mLb
Codex review, pass 2 (codex-cli 0.169.0, commit 502bde3)Verdict: findings (6 findings) Pass 1 findings: F1.1 resolved, F1.2 unresolved, F1.3 resolved, F1.4 regressed, F1.5 resolved (F1.2 and F1.4 carry on as F2.1 and F2.2)
Response
findings.json{
"reviewer": "codex-cli 0.169.0",
"perspective": "defects",
"mode": "verify",
"commit": "502bde360666665d8a669bbbfbdca6f70f21652f",
"verdict": "findings",
"prior": [
{
"id": "F1.1",
"status": "resolved"
},
{
"id": "F1.2",
"status": "unresolved"
},
{
"id": "F1.3",
"status": "resolved"
},
{
"id": "F1.4",
"status": "regressed"
},
{
"id": "F1.5",
"status": "resolved"
}
],
"findings": [
{
"id": "F2.1",
"severity": "P1",
"tag": null,
"file": "src/components/repos/CollectionVersionsTab.jsx",
"line": 676,
"claim": "The Versions row menu can still offer Release during a rebuild.",
"scenario": "Open the row menu while the expansions list is loading and the version's default is rebuilding. Even though the version already has an expansion_url, the menu skips its status check because the expansion is missing from the local list. Release is enabled until the list arrives. With a stale list, Release also stays enabled while the status check and subsequent list refresh are pending.",
"action": "Check the version's expansion_url directly, hold Release while the status is pending, and use a positive status response immediately to disable Release and start polling.",
"lines_delta": null,
"confidence": "high"
},
{
"id": "F2.2",
"severity": "P1",
"tag": null,
"file": "src/hooks/useDefaultExpansionProcessing.js",
"line": 8,
"claim": "A failed status poll now re-enables Release and stops polling during a known rebuild.",
"scenario": "The version page has already received true from processing/ and disabled Release. If the next poll returns 503 while the build is still running, the hook records false, enables Release, and clears its timer. Opening Actions after a cached false also leaves Release enabled until the fresh request answers.",
"action": "Track pending and failed reads separately from a successful false response. Keep polling after a transient failure and hold Release while checking a potentially stale status.",
"lines_delta": null,
"confidence": "high"
},
{
"id": "F2.3",
"severity": "P1",
"tag": null,
"file": "src/components/repos/RepoHome.jsx",
"line": 862,
"claim": "An open release confirmation stays actionable after the UI detects a rebuild.",
"scenario": "A user opens Actions after another editor starts a rebuild and clicks Release before the status refresh answers. The refresh then reports true, but the confirmation still lets the user submit and receive a 409.",
"action": "Keep the confirmation tied to the target version's live expansion status. Disable Submit with the build reason while processing, and guard the submit handler against a release in that state.",
"lines_delta": null,
"confidence": "high"
},
{
"id": "F2.4",
"severity": "P1",
"tag": null,
"file": "src/components/repos/RepoHome.jsx",
"line": 608,
"claim": "An open version edit form can offer Release throughout a rebuild that starts after the form opens.",
"scenario": "Open Edit while the default expansion is ready, then start a rebuild in another tab. The form's first status read returned false, so it never checks again. The Release checkbox remains enabled, and saving with it checked sends released: true and receives a 409.",
"action": "Refresh the default expansion status while the edit form is open and gate submission when it would release a version whose expansion is building.",
"lines_delta": null,
"confidence": "high"
},
{
"id": "F2.5",
"severity": "P2",
"tag": null,
"file": "src/components/repos/defaultExpansion.js",
"line": 17,
"claim": "The version page mistakes an export for an expansion build when an auto-expanding version has no default.",
"scenario": "Clear the default on an unreleased auto-expanding version and run an export. The API marks the version as processing but still permits release because no expansion or seed is running. The version page disables Release and tells the user to wait for an expansion that is never being built.",
"action": "Use the seed task's status to distinguish automatic expansion creation from other version processing when there is no default expansion URL.",
"lines_delta": null,
"confidence": "high"
},
{
"id": "F2.6",
"severity": "P2",
"tag": null,
"file": "src/components/repos/__tests__/RepoManagementList.test.js",
"line": 38,
"claim": "The menu test covers rendering a supplied warning but misses the live status behavior required by the ticket.",
"scenario": "The static test passes even if the page enables Release during a rebuild or leaves it disabled after processing/ returns false. It injects releaseWait directly and never exercises the status check or the open menu's transition.",
"action": "Add a menu test that drives processing/ from true to false and verifies that Release shows the tooltip while blocked and becomes enabled without reopening the menu or reloading the page.",
"lines_delta": null,
"confidence": "high"
}
]
} |
…ach read their own version, and a row menu polls a build it found Codex review pass 3: - F3.1: the edit form and the release confirmation, which can be open at once for different versions, each read the default expansion of their own version. - F3.2: when a row menu finds its default expansion being built, it polls that expansion from there, so Release turns on when the build ends even if the version's expansions can't be read again. - F3.4: HEAD's row doesn't say Release waits for its expansion: HEAD is never released. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qVTGMWCzGXDUyX7mLb
Codex review, pass 3 (codex-cli 0.169.0, commit a996a48)Verdict: findings (4 findings). This was the third and last pass; the P1s are fixed below. Earlier findings: F1.1 resolved, F1.2 unresolved, F1.3 resolved, F1.4 resolved, F1.5 resolved, F2.1 regressed, F2.2 resolved, F2.3 regressed, F2.4 unresolved, F2.5 unresolved, F2.6 unresolved. F2.1 and F2.3 carry on as F3.2 and F3.1; F1.2, F2.4, F2.5 and F2.6 were answered in pass 2.
Response
findings.json{
"reviewer": "codex-cli 0.169.0",
"perspective": "defects",
"mode": "verify",
"commit": "a996a48d73b08014d66ac8be7ae6f958b5a6f92b",
"verdict": "findings",
"prior": [
{
"id": "F1.1",
"status": "resolved"
},
{
"id": "F1.2",
"status": "unresolved"
},
{
"id": "F1.3",
"status": "resolved"
},
{
"id": "F1.4",
"status": "resolved"
},
{
"id": "F1.5",
"status": "resolved"
},
{
"id": "F2.1",
"status": "regressed"
},
{
"id": "F2.2",
"status": "resolved"
},
{
"id": "F2.3",
"status": "regressed"
},
{
"id": "F2.4",
"status": "unresolved"
},
{
"id": "F2.5",
"status": "unresolved"
},
{
"id": "F2.6",
"status": "unresolved"
}
],
"findings": [
{
"id": "F3.1",
"severity": "P1",
"tag": null,
"file": "src/components/repos/RepoHome.jsx",
"line": 608,
"claim": "The release confirmation can use the build status of the version open in the edit form.",
"scenario": "From the Versions tab, edit v1 while its default expansion rebuilds. Leave the edit form open and choose Release for v2, whose expansion is ready. The confirmation names v2 but disables Submit and tells the user to wait for v2's expansion based on v1's rebuild.",
"action": "Track the edit form and confirmation targets independently and pass each control the wait reason for its own version.",
"lines_delta": null,
"confidence": "high"
},
{
"id": "F3.2",
"severity": "P1",
"tag": null,
"file": "src/components/repos/CollectionVersionsTab.jsx",
"line": 681,
"claim": "A successful build status read can leave the Versions menu stuck with Release disabled.",
"scenario": "Open a row menu before its expansions list arrives, while its default expansion is rebuilding. The status endpoint returns true, then the forced list refresh returns 503. The refresh supersedes the first list request and leaves no expansion row to start polling. Release stays disabled after the build finishes, and reopening the menu skips the read because the cached status still says processing.",
"action": "Start polling the named default expansion directly after a positive status read, independently of the expansions list. Add a regression test for a failed list refresh followed by build completion.",
"lines_delta": null,
"confidence": "high"
},
{
"id": "F3.3",
"severity": "P2",
"tag": null,
"file": "src/components/repos/RepoHome.jsx",
"line": 604,
"claim": "The version page can keep Release disabled for a rebuild that no longer affects its default expansion.",
"scenario": "Leave a version page open while default expansion A rebuilds. In another tab, set an already-built expansion B as the default. Reopening Actions on the first page still checks A and tells the user to wait, even though the API would release the version with B.",
"action": "Refresh the version's default expansion URL when checking release readiness and while a known rebuild blocks Release.",
"lines_delta": null,
"confidence": "high"
},
{
"id": "F3.4",
"severity": "P2",
"tag": null,
"file": "src/components/repos/CollectionVersionsTab.jsx",
"line": 723,
"claim": "The HEAD row can tell users that Release will become available after a rebuild.",
"scenario": "Open the menu for an unreleased collection's HEAD row while its default expansion rebuilds. The tooltip says Release will become available once the expansion is built, but the menu keeps Release disabled for HEAD after the rebuild finishes.",
"action": "Skip the expansion-specific Release tooltip for HEAD.",
"lines_delta": null,
"confidence": "high"
}
]
} |
…sed as is, the build rule tested through getReleaseWait - S1: the Actions menu's refresh is passed as is; with no version to read it does nothing. - S2: isDefaultExpansionBuilding is private to defaultExpansion.js, tested through getReleaseWait. - S4: one "nothing waits" case in the menu test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qVTGMWCzGXDUyX7mLb
Simplification review (claude subagent, commit 847d54e)
Tests rerun: |
…ts no poll once the Versions tab is gone Codex final check (FC.1): a processing/ answer that came back after the Versions tab unmounted could start a poll nothing would stop. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qVTGMWCzGXDUyX7mLb
Codex check of commits a996a48..e56f949 (codex-cli 0.169.0)These are the pass 3 fixes and the simplification cuts. Verdict: findings
findings.json{
"reviewer": "codex-cli 0.169.0",
"perspective": "defects",
"mode": "final",
"commit": "e56f949a18ee23cecf9244ef9485e1ff8b74a0b5",
"verdict": "findings",
"prior": [],
"findings": [
{
"id": "FC.1",
"severity": "P2",
"tag": null,
"file": "src/components/repos/CollectionVersionsTab.jsx",
"line": 682,
"claim": "A late build-status response can start polling after the Versions tab has unmounted.",
"scenario": "Open a row menu during a rebuild and leave the Versions tab before the status response arrives. If the response says the build is active, it starts a 30-second poll after unmount cleanup has run. If the expansion is later deleted and the endpoint returns 404, the poll keeps sending requests until the page is reloaded or closed.",
"action": "Ignore the menu's status response after the Versions tab unmounts, before updating state or starting the poll.",
"lines_delta": null,
"confidence": "high"
}
]
}Codex check of commits e56f949..851170e (codex-cli 0.169.0)This is the FC.1 guard. Verdict: clean findings.json{
"reviewer": "codex-cli 0.169.0",
"perspective": "defects",
"mode": "final",
"commit": "851170ef755f93dc9f5ab753ee9334d987483ac8",
"verdict": "clean",
"prior": [],
"findings": []
}Review loop done. No P0 or P1 is open. These were accepted with reasons in the passes above: F1.2/F2.1 (no hold while a read is in flight), F2.4 (part), F2.5, F2.6 and F3.3. Screenshots in the PR body were recaptured on 851170e. |
… builds an expansion isn't released as it's made The New Version form's Released box is off for a collection version that builds an expansion, saying "Available once this version's expansion is built": with the lock toggle, the expansion is chosen after Submit, and every choice but "none" builds one; without it, while Autoexpand is ticked. The version is released once that's built, from its menu. The API now refuses such a create (OpenConceptLab/oclapi2#1141). What the box shows checked is what's sent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qVTGMWCzGXDUyX7mLb
…pansion lets a new collection version be made released Codex review, round 2 pass 1 (F1.1): the expansion choice after Submit shows the Released box too. It's ticked only when "none" is chosen, as nothing is built then; lock and latest build an expansion, so it waits, saying why. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qVTGMWCzGXDUyX7mLb
Codex review, round 2 pass 1 (codex-cli 0.169.0, commit 48e92fa)This round reviews the New Version form change (the create path, decided after round 1). Verdict: findings (1 finding)
Response
findings.json{
"reviewer": "codex-cli 0.169.0",
"perspective": "defects",
"mode": "full",
"commit": "48e92fa894e9946c68714faa25df2419394a9438",
"verdict": "findings",
"prior": [],
"findings": [
{
"id": "F1.1",
"severity": "P1",
"tag": null,
"file": "src/components/repos/VersionForm.jsx",
"line": 90,
"claim": "The expansion lock toggle prevents releasing a new collection version even when the user chooses No expansion.",
"scenario": "With the toggle enabled, a collection editor chooses No expansion in the New Version popup. The form disables Released before the popup and never re-enables it. The POST sends expansion: 'none', autoexpand: false, and released: false, forcing a separate release action even though the API accepts released: true for this choice.",
"action": "Offer the release choice in the popup when No expansion is selected. Use the final expansion choice to gate released in the POST, and test the submitted payload for none, lock, and latest.",
"lines_delta": null,
"confidence": "high"
}
]
} |
…drops a Released ticked there Codex review, round 2 pass 2 (F2.1): closing the expansion choice without submitting clears the choice and the Released box, so a release ticked beside "none" isn't carried into the next try. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qVTGMWCzGXDUyX7mLb
Codex review, round 2 pass 2 (codex-cli 0.169.0, commit 2625843)Verdict: findings (1 finding). Round 2 pass 1's F1.1 is resolved.
Response
findings.json{
"reviewer": "codex-cli 0.169.0",
"perspective": "defects",
"mode": "verify",
"commit": "2625843eedf9ebfb55c827f4145a6c12bf7c08c7",
"verdict": "findings",
"prior": [
{
"id": "F1.1",
"status": "resolved"
}
],
"findings": [
{
"id": "F2.1",
"severity": "P1",
"tag": null,
"file": "src/components/repos/VersionForm.jsx",
"line": 316,
"claim": "Dismissing the expansion popup preserves a canceled release choice.",
"scenario": "Choose No expansion, check Released, then press Escape to back out. Reopen the popup and choose No expansion again. Released silently becomes checked from the dismissed popup, so submitting can publish the version without a fresh opt-in.",
"action": "Discard the popup's Released selection when it is dismissed. Add a form test that reopens the popup and confirms that choosing No expansion leaves Released unchecked.",
"lines_delta": null,
"confidence": "high"
}
]
} |
Codex review, round 2 pass 3 (codex-cli 0.169.0, commit de7498b)Verdict: clean. F1.1 and F2.1 are resolved, and no P0 or P1 is open. findings.json{
"reviewer": "codex-cli 0.169.0",
"perspective": "defects",
"mode": "verify",
"commit": "de7498bd1a309e5c10c087e15fdb51b22d245a11",
"verdict": "clean",
"prior": [
{
"id": "F1.1",
"status": "resolved"
},
{
"id": "F2.1",
"status": "resolved"
}
],
"findings": []
} |
Simplification review, round 2 (claude subagent, commit de7498b)
Nothing cut, so nothing came after the commit Codex pass 3 reviewed. Round 2's loop is done: 3 Codex passes, two P1s fixed, the last pass clean. |
Closes OpenConceptLab/ocl_issues#3103: a collection version is released only once its default expansion is built. The API side, which refuses such a release with a 409, is OpenConceptLab/oclapi2#1141; merge this after it. OpenConceptLab/ocl-cli#17 stops the CLI creating collection versions released.
What changes
Release is disabled while the version's default expansion is being built, with "Available once this version's expansion is built" on hover, wherever it's offered:
RepoManagementList.jsx): it offered Release during a build."Being built" follows the API: the default expansion is processing, or the version expands itself and is still processing with no default yet (its seed makes the expansion). Un-Release, and a repository notice's lock (which says why first), are as before.
It turns on without a reload. The version page reads its default expansion's
processing/when the version names one and each time the Actions menu opens (a rebuild can start from the Versions tab meanwhile), then every 30 s while it's being built (useDefaultExpansionProcessing); the edit form and the confirmation each read their own version when they open. A Versions row menu asks the same when it opens, and polls from there with the tab's existing polling. A failed read keeps the last answer; with none yet, it counts as built.Also: an edit now sends
expansion_urlonly when it's changed in the form, so saving a form opened while the version was seeding no longer clears the default its seed made since. A refused release shows the API's reason (this client returns an error's body as the response).It reuses the disabled-item-with-tooltip pattern already in place (
LockTooltip/LockableMenuItemon the version page,RepoVersionRowMenu'stooltipin the Versions tab); no new component. The rule isgetReleaseWaitindefaultExpansion.js;parseProcessingValuemoves toprocessingStages.jsto be shared. The tooltip text is in en, es, pt-BR and zh.Screenshots
A local dev build against a mocked API: unreleased version v2 of a demo collection, its default expansion being rebuilt.
Version page, Actions menu, 1440
Version page, Actions menu, 390
After the build ends: the mocked
processing/turns false and Release turns on 30 s later, with the menu still open and no reload.New Version form (HEAD's Actions, Create Version)
Versions tab, v2's row menu, during the rebuild
At 390 the tooltip is cut off at the screen's left edge. That's the shared pattern's left placement, the same for a notice's lock, and isn't changed here.
Tests
defaultExpansion.test.js: the rule (the default processing, the seed, no expansion, a released version, no version).RepoManagementList.test.js(new): the version page's Release item renders disabled with the reason while the expansion builds, enabled otherwise, and a notice's lock says why first. Its first test fails on main.ReleaseVersion.test.js(new): Submit waits, saying why, and is offered otherwise.versionExpansion.test.js: an edit sends the default expansion only when it's changed; a new collection version that builds an expansion isn't released as it's made.npm test: 497 pass. ESLint is clean onsrc/components/reposandsrc/hooks. Review: Codex passes, the simplification review and the final checks are in the comments below.🤖 Generated with Claude Code
https://claude.ai/code/session_01AaZ4qVTGMWCzGXDUyX7mLb